<?php 
/**
 *   Joomdiet - components/views/dietcalibrator/tmpl/default.php
 *   Author: Juan Dapena Paz (juan@bittingbits.com)
 *   Copyright (C) 2010 Bitting Bits S.L.
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
defined('_JEXEC') or die('Restricted access'); ?>
<div id="joomdiet_container">
    <h1><?php echo JText::_('COM_JOOMDIET_DIET_CALIBRATOR_TITLE'); ?></h1>
    <form id="form1" method="post" action="<?php echo JRoute::_('index.php?option=com_joomdiet'); ?>">
    <div id="menucontentarea">
    <div id="daypartselectorarea">
        <ul>
            <li class="daypartitem selected" id="breakfast"><?php echo JText::_('COM_JOOMDIET_BREAKFAST'); ?></li>
            <li class="daypartitem" id="middlemorning"><?php echo JText::_('COM_JOOMDIET_MIDDLEMORNING'); ?></li>
            <li class="daypartitem" id="lunch"><?php echo JText::_('COM_JOOMDIET_LUNCH'); ?></li>
            <li class="daypartitem" id="middleafternoon"><?php echo JText::_('COM_JOOMDIET_MIDDLEAFTERNOON'); ?></li>
            <li class="daypartitem" id="dinner"><?php echo JText::_('COM_JOOMDIET_DINNER'); ?></li>
        </ul>
    </div>
    <div id="contentarea">
        <div id="recipesearch">
            <h2><?php echo JText::_('COM_JOOMDIET_RECIPE_SEARCH_TITLE'); ?></h2>
            <div align="center" style="margin-top: 27px;">
                <div class="tablepane">
                    <table width="100%" id="joomdiettable">
                        <?php $i = 0; ?>
                        <?php foreach ($this->recipes as $recipe) { ?>
                            <tr class="tablerow row<?php echo $i; ?>" id="foodrow<?php echo $recipe->id; ?>">
                                <td width="80%">
                                    <input type="hidden" name="type<?php echo $recipe->id; ?>" id="type<?php echo $recipe->id; ?>" value="<?php echo $recipe->type; ?>" />
                                    <?php echo $recipe->name; ?>
                                </td>
                                <td>
                                </td>
                            </tr>
                        <?php $i = 1 - $i; } ?>
                    </table>
                </div>
                <label for="amount"><?php echo JText::_('COM_JOOMDIET_AMOUNT'); ?></label>
                <input type="text" name="amount" id="amount" value=100 /> <?php echo JText::_('COM_JOOMDIET_GR'); ?>
                <input type="button" name="addrecipe" id="addrecipe" value="<?php echo JText::_('COM_JOOMDIET_ADD_RECIPE'); ?>" />
            </div>
        </div>
        <div id="menuarea">
            <h2><?php echo JText::_('COM_JOOMDIET_MENU'); ?></h2>
            <div id="infotable">
                <div class="slider" id="breakfast-div"><div class="content"></div></div>
                <div class="slider" id="middlemorning-div"><div class="content"></div></div>
                <div class="slider" id="lunch-div"><div class="content"></div></div>
                <div class="slider" id="middleafternoon-div"><div class="content"></div></div>
                <div class="slider" id="dinner-div"><div class="content"></div></div>
                <input type="submit" name="viewcalc" id="viewcalc" value="<?php echo JText::_('COM_JOOMDIET_TOTAL_COMPOSITION'); ?>" />
            </div>
        </div>
    </div>
    <div class="float">
    </div></div>
    
    <input name="format" type="hidden" id="format" value="html" />
    <input name="controller" type="hidden" id="controller" value="dietcalibrator" />
    <input name="task" type="hidden" id="task" value="loadinfotable" />
    <input name="cid" type="hidden" id="cid" value="0" />
    <input name="infotype" type="hidden" id="infotype" value="1" />
    <input name="amountvalue" type="hidden" id="amountvalue" value="1" />
    <input name="recipeid" type="hidden" id="recipeid" value="0" />
    <input name="recipes" type="hidden" id="recipes" value="0" />
    <input name="foods" type="hidden" id="foods" value="0" />
    <input name="itemtype" type="hidden" id="itemtype" value="1" />
    
    </form>
</div>
